/*******************************************************************************
 * Copyright (c) 2010, 2010 Xbeam Project and ChenZhiKong.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License. 
 *******************************************************************************/
package org.bellusoft.xbeam.framework;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.security.cert.X509Certificate;
import java.util.Dictionary;
import java.util.Enumeration;
import java.util.List;
import java.util.Map;

import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.BundleException;
import org.osgi.framework.ServiceReference;
import org.osgi.framework.Version;

class FragmentBundle implements Bundle {

	public int compareTo(Bundle o) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int getState() {
		// TODO Auto-generated method stub
		return 0;
	}

	public void start(int options) throws BundleException {
		throw new BundleException("fragment bundle cannot be started");
	}

	public void start() throws BundleException {
		throw new BundleException("fragment bundle cannot be started");
	}

	public void stop(int options) throws BundleException {
		throw new BundleException("fragment bundle cannot be stopped");
	}

	public void stop() throws BundleException {
		throw new BundleException("fragment bundle cannot be stopped");
	}

	public void update(InputStream input) throws BundleException {
		// TODO Auto-generated method stub
	}

	public void update() throws BundleException {
		// TODO Auto-generated method stub
	}

	public void uninstall() throws BundleException {
		// TODO Auto-generated method stub

	}

	public Dictionary<String, String> getHeaders() {
		// TODO Auto-generated method stub
		return null;
	}

	public long getBundleId() {
		// TODO Auto-generated method stub
		return 0;
	}

	public String getLocation() {
		// TODO Auto-generated method stub
		return null;
	}

	public ServiceReference<?>[] getRegisteredServices() {
		// TODO Auto-generated method stub
		return null;
	}

	public ServiceReference<?>[] getServicesInUse() {
		// TODO Auto-generated method stub
		return null;
	}

	public boolean hasPermission(Object permission) {
		// TODO Auto-generated method stub
		return false;
	}

	public URL getResource(String name) {
		// TODO Auto-generated method stub
		return null;
	}

	public Dictionary<String, String> getHeaders(String locale) {
		// TODO Auto-generated method stub
		return null;
	}

	public String getSymbolicName() {
		// TODO Auto-generated method stub
		return null;
	}

	public Class<?> loadClass(String name) throws ClassNotFoundException {
		// TODO Auto-generated method stub
		return null;
	}

	public Enumeration<URL> getResources(String name) throws IOException {
		// TODO Auto-generated method stub
		return null;
	}

	public Enumeration<String> getEntryPaths(String path) {
		// TODO Auto-generated method stub
		return null;
	}

	public URL getEntry(String path) {
		// TODO Auto-generated method stub
		return null;
	}

	public long getLastModified() {
		// TODO Auto-generated method stub
		return 0;
	}

	public Enumeration<URL> findEntries(String path, String filePattern,
			boolean recurse) {
		// TODO Auto-generated method stub
		return null;
	}

	public BundleContext getBundleContext() {
		// TODO Auto-generated method stub
		return null;
	}

	public Map<X509Certificate, List<X509Certificate>> getSignerCertificates(
			int signersType) {
		// TODO Auto-generated method stub
		return null;
	}

	public Version getVersion() {
		// TODO Auto-generated method stub
		return null;
	}

	public <A> A adapt(Class<A> type) {
		// TODO Auto-generated method stub
		return null;
	}

	public File getDataFile(String filename) {
		// TODO Auto-generated method stub
		return null;
	}

}
